package com.example.service.impl;

import com.example.dao.LoginDao;
import com.example.domain.User;
import com.example.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginDao loginDao;

    // 登录验证
    public User login(User user) {
        return loginDao.getByUsernameAndPassword(user);
    }
}
